Tables [dbo].[AddressCategoryPreferences]
Properties
PropertyValue
Row Count0
Created10:31:13 AM Tuesday, March 02, 2010
Last Modified11:39:59 AM Monday, February 20, 2012
Columns
NameData TypeMax Length (Bytes)Allow Nulls
Cluster Primary Key PK_AddressCategoryPreferences: ContactKey\AddressCategoryCodeForeign Keys FK_AddressCategoryPreferences_ContactMain: [dbo].[ContactMain].ContactKeyContactKeyuniqueidentifier16
No
Cluster Primary Key PK_AddressCategoryPreferences: ContactKey\AddressCategoryCodeForeign Keys FK_AddressCategoryPreferences_AddressCategoryRef: [dbo].[AddressCategoryRef].AddressCategoryCodeAddressCategoryCodeint4
No
NoSolicitationFlagbit1
No
OptOutFlagbit1
No
MarkedForDeleteOndatetime8
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_AddressCategoryPreferences: ContactKey\AddressCategoryCodePK_AddressCategoryPreferencesContactKey, AddressCategoryCode
Yes
Foreign Keys Foreign Keys
NameColumns
FK_AddressCategoryPreferences_AddressCategoryRefAddressCategoryCode->[dbo].[AddressCategoryRef].[AddressCategoryCode]
FK_AddressCategoryPreferences_ContactMainContactKey->[dbo].[ContactMain].[ContactKey]
SQL Script
CREATE TABLE [dbo].[AddressCategoryPreferences]
(
[ContactKey] [uniqueidentifier] NOT NULL,
[AddressCategoryCode] [int] NOT NULL,
[NoSolicitationFlag] [bit] NOT NULL,
[OptOutFlag] [bit] NOT NULL,
[MarkedForDeleteOn] [datetime] NULL
) ON [PRIMARY]

GO
ALTER TABLE [dbo].[AddressCategoryPreferences] ADD CONSTRAINT [PK_AddressCategoryPreferences] PRIMARY KEY CLUSTERED ([ContactKey], [AddressCategoryCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AddressCategoryPreferences] ADD CONSTRAINT [FK_AddressCategoryPreferences_AddressCategoryRef] FOREIGN KEY ([AddressCategoryCode]) REFERENCES [dbo].[AddressCategoryRef] ([AddressCategoryCode])
GO
ALTER TABLE [dbo].[AddressCategoryPreferences] ADD CONSTRAINT [FK_AddressCategoryPreferences_ContactMain] FOREIGN KEY ([ContactKey]) REFERENCES [dbo].[ContactMain] ([ContactKey])
GO
Uses
Used By